$OpenBSD: patch-src_dep_constants_dep_h,v 1.2 2015/01/19 20:44:15 naddy Exp $
--- src/dep/constants_dep.h.orig	Wed Mar 28 00:09:06 2007
+++ src/dep/constants_dep.h	Mon Jan 19 21:32:19 2015
@@ -5,7 +5,8 @@
 
 /* platform dependent */
 
-#if !defined(linux) && !defined(__NetBSD__) && !defined(__FreeBSD__)
+#if !defined(linux) && !defined(__NetBSD__) && !defined(__FreeBSD__) && \
+    !defined(__OpenBSD__)
 #error Not ported to this architecture, please update.
 #endif
 
@@ -27,7 +28,7 @@
 #endif /* linux */
 
 
-#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
 # include <sys/types.h>
 # include <sys/socket.h>
 # include <netinet/in.h>
@@ -37,14 +38,20 @@
 # if defined(__FreeBSD__)
 #  include <net/ethernet.h>
 #  include <sys/uio.h>
-# else
+# endif
+# if defined(__NetBSD__)
 #  include <net/if_ether.h>
 # endif
+# if defined(__OpenBSD__)
+#  include <netinet/if_ether.h>
+# endif
 # include <ifaddrs.h>
 # define IFACE_NAME_LENGTH         IF_NAMESIZE
 # define NET_ADDRESS_LENGTH        INET_ADDRSTRLEN
 
 # define IFCONF_LENGTH 10
+
+# define BSD_INTERFACE_FUNCTIONS
 
 # define adjtimex ntp_adjtime
 
